﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpModelInterface.h"
#include "IElement.h"

namespace gcmp
{

    /// \brief 生成预设参数组Id
    class GCMP_MODEL_INTERFACE_EXPORT IPresetValuesGroupIdGenerator
    {
    public:
        virtual ~IPresetValuesGroupIdGenerator() {};

        /// \brief 生成PresetValuesGroupId
        ///
        /// \param pElement Element 指针
        /// \param Id 获取生成的Id
        /// \return 是否成功
        virtual bool Generate(const IElement* pElement, Int32& Id) = 0;

    };
}



